import request from '../utils/request';
import makeApi from './index';

const api = {
	login: '/sys/sysUser/login',
	logout: '/user/logout',
	query: '/sys/sysUser/userDetailInfo'
};

const services = makeApi(api);

services.logout = function logout(params) {
	return request({
		url: api.logout,
		method: 'get',
		data: params,
	});
};

const {
	login,
	logout,
	query,
} = services;

export {
	login,
	logout,
	query,
};

export default services;
